	<?php foreach($products as $product):?>
		<div class="product row">
			<div class="col-md-3 imageHolder">
				<div class="row">
					<div class="pull-left">
						<input type="checkbox" name="product_check[]" class="productCheck" value="<?php echo $product["id"]; ?>" />
					</div>
					<a href="<?php echo $product["url"]; ?>" title="<?php echo $product["name"]; ?>" class="productImage">
						<img alt="" src="<?php echo scripts_url().$product["images"][0]["thumb_name"]?>" class="img-responsive" />
					</a>
					<div class="zoomHolder">
						<img src="<?php echo scripts_url().$product["images"][0]["name"]?>" alt="" />
						<a href="#" title="" class="contactNow"><?php echo ucfirst(translate("contact_now"));?></a>
					</div>
				</div>
			</div>
			<div class="col-md-5 productDescription">
				<div class="row">
					<?php
						$addClass = "";
						if($product["type"] == 1)
						{
							$addClass = "new";
						}
					?>
					<a href="<?php echo $product["url"]; ?>" title="<?php echo $product["name"]; ?>" class="name <?php echo $addClass; ?>">
						<?php echo $product["name"]; ?>
					</a>
					<?php
						$shortDesc = summarize_description($product["description"], 400);
					?>
					<p><?php echo $shortDesc;?></p>
					
					<a href="#" title="" class="contactNow"><?php echo translate("contact_now"); ?></a>
				</div>
			</div>
			<div class="col-md-3 col-md-offset-1 priceHolder">
				<div class="row">
					<?php if($product["quantity"] > 0): ?>
					<div class="productPrice">
						<div>
							<?php echo $product["price"];?>
						</div>
						<sup>/<?php echo strtolower(($product["quantity_type"] == 1 ? translate("set") : translate("piece"))); ?></sup>
						
					</div>
					<div class="discount">
						<?php if(isset($product["discount"]) && $product["discount"]["discount_percent"] > 0 || $product["discount"]["discount_static"] > 0): ?>
						
							<?php
								if($product["discount"]["discount_percent"] > 0)
								{
									echo "-".$product["discount"]["discount_percent"]."%";
								}
								elseif($product["discount"]["discount_static"] > 0)
								{
									echo "-".$product["discount"]["discount_static"]."".$settings["currency"];
								}
							?>
						
						<sup><?php echo translate("discount"); ?></sup>
						<?php endif; ?>
					</div>
					<?php 
						if($product["minimal_order"] > 1)
						{
							echo translate("comanda_mimima") . ": ".$product["minimal_order"].($product["quantity_type"] == 1 ? translate("sets") : translate("pieces"));
						}
					?>
					
					<?php endif; ?>
					
					<?php if($product["quantity"] > 0): ?>
					<button class="btn btn-primary toCart" product_id="<?php echo $product["id"]; ?>"><span class="glyphicon glyphicon-shopping-cart"></span> Adauga in cos</button>
					<?php else: ?>
						<button class="btn btn-info quote" product_id="<?php echo $product["id"]; ?>"><span>&nbsp;</span><?php echo translate("request_quote")?></button>
					<?php endif; ?>
				</div>
			</div>
		</div>
	<?php endforeach; ?>
